<template>
  <el-menu-item :index="item.path">
    <el-icon v-if="item.meta.icon">
      <component :is="item.meta.icon"></component>
    </el-icon>
    <template #title>{{ item.meta.title }}</template>
  </el-menu-item>
</template>

<script setup lang="ts">
const props = defineProps(['item'])
const { item } = toRefs(props)
</script>
